<template>
  <section>
    <el-form-item label="显示方式" required>
      <el-select v-model="value.displayMethod" placeholder="请选择" :style="{ width: '100%' }" clearable>
        <el-option label="文件列表" value="text" />
        <el-option label="图片列表" value="picture" />
        <el-option label="图片卡片" value="picture-card" />
      </el-select>
    </el-form-item>
    <el-form-item label="文件类型" required>
      <el-select v-model="value.acceptFileTypes" multiple placeholder="请选择" :style="{ width: '100%' }" clearable>
        <el-option label="图像" value="image" />
        <el-option label="视频" value="video" />
      </el-select>
    </el-form-item>
    <el-form-item label="文件数量" required>
      <el-input-number v-model="value.limitFileCount" :min="1" :max="20"></el-input-number>
    </el-form-item>
    <el-form-item label="每个文件大小(M)" required>
      <el-input-number v-model="value.limitFileSize" :min="1" :max="200"></el-input-number>
    </el-form-item>
  </section>
</template>

<script>
  export default {
    props: {
      value: {
        type: Object,
        default: null
      },
    },
    data() {
      return {
        sp: {},
        sr: {},
        param: {}
      }
    },
    created(options) {
      let that = this;
      that.xinit();
    },
    methods: {
      xinit() {
        let that = this;
      },
    }
  }
</script>

<style>

</style>
